package com.example.util;


public class ExternalMessageException extends Exception {
	private static final long serialVersionUID = -9108215004116847851L;
	/**
     * 错误码
     */
    private ErrorCode error;

    public ExternalMessageException(ErrorCode error, String message) {
        super(message);
        this.error = error;
    }

    public ErrorCode getError() {
        return error;
    }

    public void setError(ErrorCode error) {
        this.error = error;
    }
}
